<h2>Authentification</h2>

<% form_for(:session, :url => sessions_path) do |f| %>
    <div class="field">
      <%= f.label :email %><br />
      <% if params && params[:session] && params[:session][:email] %>
          <%= f.text_field :email, :value => params[:session][:email] %>
      <% else %>
          <%= f.text_field :email %>
      <% end %>
    </div>
    <div class="field">
      <%= f.label :password %><br />
      <%= f.password_field :password %>
    </div>
    <div class="actions">
      <%= f.submit "S'authentifier" %>
    </div>
<% end %>